package com.edoomath.mainapp.tencent.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.edoomath.entity.tecent.WebAuth;
import com.edoomath.entity.tecent.WebAuthClient;

/**
 * 
 * @author mohanlan
 *
 */
@Dao("hibernate")
public interface WebAuthDao {

    /**
     * 
     * @param host
     * @return
     */
	@Query("FROM WebAuthClient WHERE host = :host")
    public WebAuthClient loadWebAuthClient(@Variable("host") String host);
    
    /**
     * 
     * @param state
     * @return
     */
    @Query("FROM WebAuth WHERE state = :state")
    public WebAuth getWebAuth(@Variable("state") String state);
}
